package com.example.demo.bean;


/**
 * 基础响应类
 */
public class BaseResponse<T> {
    private int status = 0;
    private String descript;

    private T data;

    public BaseResponse() {

    }

    public BaseResponse(T data) {
        status = 1;
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public boolean isSuccess() {
        return 1 == status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
